package com.yuedao.sender.model1;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Timestamp;

@Entity(name = "ydx_coupon")
public class CouponEntity {

    private String code;

    private String vouchId;

    private Timestamp outTime;

    private Timestamp getTime;

    @Id
    @Column(name = "code", nullable = false)
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Basic
    @Column(name = "vouch_id", nullable = false)
    public String getVouchId() {
        return vouchId;
    }

    public void setVouchId(String vouchId) {
        this.vouchId = vouchId;
    }

    @Basic
    @Column(name = "out_time")
    public Timestamp getOutTime() {
        return outTime;
    }

    public void setOutTime(Timestamp outTime) {
        this.outTime = outTime;
    }

    @Basic
    @Column(name = "get_time")
    public Timestamp getGetTime() {
        return getTime;
    }

    public void setGetTime(Timestamp getTime) {
        this.getTime = getTime;
    }
}
